package com.cf.mvp.sample.mvp.presenter;

import androidx.arch.core.executor.DefaultTaskExecutor;

import com.cf.mvp.mvp.BasePresenter;
import com.cf.mvp.sample.mvp.contract.RegisterContract;
import com.cf.mvp.sample.mvp.model.RegisterModel;
import com.cf.mvp.tool.LogUtils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author yangji
 */
public class RegisterPresenter extends BasePresenter<RegisterModel, RegisterContract.View> implements RegisterContract.Presenter {


    public RegisterPresenter() {
    }

    @Override
    public void requestRegister() {
        getModel().requestRegister("admin", "123456");
    }

    @Override
    public void requestThread() {
        getModel().requestThread();
    }


    @Override
    public void responseRegister() {
        getMvpView().registerSuccess();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}
